<?php

use yii\db\Migration;

/**
 * Class m180126_062058_add_column_project_id_to_project_pre_evaluation_other_value
 */
class m180126_062058_add_column_project_id_to_project_pre_evaluation_other_value extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('project_pre_evaluation_other_value','project_id',$this->bigInteger()->notNull());//项目id 非抵押物表
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180126_062058_add_column_project_id_to_project_pre_evaluation_other_value cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180126_062058_add_column_project_id_to_project_pre_evaluation_other_value cannot be reverted.\n";

        return false;
    }
    */
}
